<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <#include "../common.ftl">
</head>
<body>

<li>修改密码</li>

<form class="layui-form" v style="width: 90%;padding-top: 20px;">
    <#--  将用户Id设置到隐藏域中  -->
    <input type="hidden" value="${(user.id)!""}" required lay-verify="required" autocomplete="off" class="layui-input" name="userId">
    <div class="layui-form-item">
        <label class="layui-form-label">用户名：</label>
        <div class="layui-input-block">
            <input type="text" name="userName" disabled autocomplete="off" class="layui-input layui-disabled" value="${(user.userName)!""}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">旧密码：</label>
        <div class="layui-input-block">
            <input type="password" value="${(user.password)!""}" required lay-verify="required" autocomplete="off" class="layui-input" disabled>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">新密码：</label>
        <div class="layui-input-block">
            <input type="password" name="new_password" required lay-verify="required" placeholder="请输入新密码"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">重复密码：</label>
        <div class="layui-input-block">
            <input type="password" name="re_password" required lay-verify="required" placeholder="请再次输入新密码"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="adminPassword">立即提交</button>
        </div>
    </div>
</form>
<script src="${path}/js/user/password.js"></script>
</body>
</html>
